package xyz.renyumeng.xkm.model.shop;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.renyumeng.xkm.model.base.BaseEntity;

/**
 * @author renyumeng
 * @date Created in 14:41 2023/7/1
 */

@Data
@TableName("product_type_info")
@EqualsAndHashCode(callSuper = true)
public class ProductTypeInfo extends BaseEntity {
    @TableField("`type`")
    @ApiModelProperty("商品类型")
    private String type;

    @TableField("`parent_id`")
    @ApiModelProperty("父类型id")
    private Long parentId;

    @ApiModelProperty(value = "是否包含子节点")
    @TableField(exist = false)
    private boolean hasChildren;
}
